import React from 'react'
import {Switch,Route,withRouter} from 'react-router-dom'
import Admin from './views/admin'
import Login from './views/login'
 function App() {
  return (
    <div>
      <Switch>
        <Route path='/login' component={Login}/>
        <Route path='/' component={Admin}/>
      </Switch>
    </div>
  )
}
export default withRouter(App)
